<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../Public/js/jquery-1.7.1.min.js"></script>
<title>文章详细内容</title>
<style>
body {
	background:#ffffff;
	margin:0px;	
}
a{
    text-decoration: none;
    color:#24b33b;
}
div{
	margin:0px;
	margin-left:auto;
	margin-right:auto;
	/*border:solid ;
	border-color:#Ff0000;*/
	}
div{
	margin-left:auto;
	margin-right:auto;
	}
.tab{
	border:thin solid #d0d0d0;
	float:left;
	height:39px;
	border-bottom:none;
	line-height:39px;
	font-size:16px;
	color:#626262;
	text-align:center;
	width:80px;
	font-weight:bold;
	cursor:pointer;
	}	
.setab{
	background:#d8f3fe;
	color:#1f9692;
	}	
.one{
    float: left;
    margin-left: 10px;
    height:50px; 
    font-size: 12pt;
}    
</style>
</head>
<script type="text/javascript">

function addComm(){ 
    alert("dsdfsfds");
    var comm=$("#comm").val();    
    var aid=$("#aid").val();   
    alert(comm);
       $.post("{:U('Discuss/addcomment')}",{comm:comm,aid:aid},function(data){
        var jsonObj = $.parseJSON(data);
       // $('#disName').html(jsonObj.data['p_name'])
//        $('#disTime').html(jsonObj.info)
//        $('#disContent').html(jsonObj.data['content'])
        $('#commpart').append("<div class='one' id='disName' style='width:15%;color:#0000ff;'>"
         +jsonObj.data['p_name']+"</div><div class='one' id='disContent' style='width:60%;'>"
         +jsonObj.data['content']+"</div><div class='one' id='disTime' style='width:15%;text-align: right;font-size:6pt;font-style:oblique;'>"
         +jsonObj.info+"</div>");
        $('#comm').attr('value','');    
    });
}

</script>
<body>
<div style="margin-top:2%;width:100%;">
	<div style="float:left;width:67%;margin-top:2%;">
   
  <!--标题栏开始-->  
		<div style="width:90%;height:40px; background:#ecf9fe; border: thin solid #dee3e3; margin-top:10px;">
			<div class="tab setab" style="width:120px;">上传Tang组</div>
		</div>
      <!--标题栏结束-->  
 	 <!--最左区域-->
		<div  style="width:90%;height:100%;background:#f7fcfe;border-top:none;border:thin solid #dee3e3;"> 
		<volist name="list" id="vo">
<!--讨论题开始-->
        <input type="text" id="aid" name="aid" value="{$vo.id}" style="display: none;" />
			<div style="width:95%;margin-left:20px;margin-top:30px; height:100px;background:url(../Public/discuss/image/line.png) repeat-x left bottom;">
            	<div style="float:left;width:100%">
                	<div style="float:left;width:84px;">
                    	<div style="background:url(../Public/discuss/image/milkbottom.png) no-repeat; height:91px;width:84px;"></div>
                    </div>
                    <div style="float:right;width:85%;">
                    	<div style="width:100%;height:36px;">
                    		<div style="float:left;background:url(../Public/discuss/image/m_greenline.png) repeat-x left bottom;width:60%;height:36px; line-height:36px;color:#047f80;font-size:14pt;">{$vo.title}</div>
                        	<div style="float:left;background:url(../Public/discuss/image/greenline.png) no-repeat left bottom;width:40%;height:36px; line-height:36px;color:#047f80;font-size:11pt; font-style:oblique;">{$vo.p_name}&nbsp;&nbsp;{$vo.wtime}</div>
                    	</div>    
                    	<div style="height:50px;width:100%;font-size:12pt;color:#8b8c8e;padding-top:10px;">你知道如何选择奶瓶么？你有选择奶瓶的经验么？在这里分享您的经验和问题。</div>
                    </div>
                </div>
            </div>
   
<!--讨论题结束-->
<!--详细介绍开始-->
			<div style="width:95%;margin-left:20px;height:100px;background:url(../Public/discuss/image/line.png) repeat-x left bottom;">
            	<div style="float:left;width:100%">                
                    <div style="float:right;width:85%;height:100%;">                      
                    	<div style="margin-top:30px; margin-bottom:20px;height:100%;width:100%;font-size:12pt;color:#8b8c8e;padding-top:10px;">&nbsp;&nbsp;&nbsp;&nbsp;{$vo.content}</div>
                    </div>
                </div>
            </div>
<!--详细介绍结束-->
</volist>

<!--评论列表开始-->

			<div style="width:95%;margin-left:20px;background:url(../Public/discuss/image/line.png) repeat-x left bottom;">
            	<div style="float:left;width:100%;background:url(../Public/discuss/image/line.png) repeat-x left bottom;">
                    <div style="float:right;width:85%;">
                    <volist name="CommentList" id="vo">
                        <div class="one" style="width:15%;color:#047f80;cursor:pointer;" onclick="toChild()">{$vo.p_name}</div>
                        <div class="one" style="width:60%;">{$vo.content}</div>
                        <div class="one" style="width:15%;text-align: right;font-size:6pt;font-style:oblique;">{$vo.ptime}</div>
                     </volist> 
                     <!--添加评论局部刷新-->
                      <div id="commpart">
                      </div>
                      <!--添加评论局部刷新结束-->                  	
                    </div>
                </div>
            </div>


<!--评论列表结束-->
<!--评论栏开始-->
    
			<div style="width:95%;margin-left:20px;height:100px;">
            	<div style="float:left;width:100%">
                	<div style="float:left;width:84px;height:50px;">
                    	<div style="background:url(../Public/discuss/image/review.png) no-repeat;width:61px;height:28px;cursor:pointer;" onclick="addComm()"></div>
                    </div>
                    <div style="float:right;width:85%;height:50px;">                      
                    	<textarea id="comm" name="comm" style="width:95%;height:34px;" ></textarea>
                        <div style="margin-top:2px; float:left;background:url(../Public/discuss/image/smile.png) no-repeat left center;width:45px;height:14px;line-heght:14px;font-size:10pt;text-align:right;color:#24b33b;cursor:pointer;">表情</div>
                    </div>
                </div>
            </div>
  
<!--评论栏结束-->
        </div><!--最左区域-->	  
   </div><!--内容结束-->
   
<div style="float:left;width:3%;background:url(../Public/discuss/image/m_line.png) no-repeat right center;height:600px; "></div><!--中线-->
<!--公告开始-->
<div style="float:left;width:30%;">
	<div style="background:url(../Public/discuss/image/back.png) no-repeat;width:203px;height:214px;margin-top:20px;padding-top:50px;">
    <!--	<div style="width:80%;color:#A0A0A0;font-size:10pt;">&nbsp;&nbsp;Tang话题是供家长们互相交流的地方，话题是固定的，不能被随意发起，因为它们必须被确定是与宝宝有关，Tang崇尚一切以宝宝为中心，当然，如果您急切的希望与Tang所有的家长们交流某一个话题，请发邮件告诉Tang Team.
        </div>-->
    </div>
</div>
<!--公告结束-->
</div><!--全局框结束-->      
<img src="../Public/discuss/image/flower.png" style="position:absolute;right:0;bottom:0; z-index:-50;" />	
</body>
</html>
